package com.debao.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.debao.system.mapper.ExcellentStudentMapper;
import com.debao.system.domain.ExcellentStudent;
import com.debao.system.service.IExcellentStudentService;

/**
 * 优秀学员Service业务层处理
 * 
 * @author DeBao
 * @date 2024-08-22
 */
@Service
public class ExcellentStudentServiceImpl implements IExcellentStudentService 
{
    @Autowired
    private ExcellentStudentMapper excellentStudentMapper;

    /**
     * 查询优秀学员
     * 
     * @param id 优秀学员主键
     * @return 优秀学员
     */
    @Override
    public ExcellentStudent selectExcellentStudentById(Long id)
    {
        return excellentStudentMapper.selectExcellentStudentById(id);
    }

    /**
     * 查询优秀学员列表
     * 
     * @param excellentStudent 优秀学员
     * @return 优秀学员
     */
    @Override
    public List<ExcellentStudent> selectExcellentStudentList(ExcellentStudent excellentStudent)
    {
        return excellentStudentMapper.selectExcellentStudentList(excellentStudent);
    }

    /**
     * 新增优秀学员
     * 
     * @param excellentStudent 优秀学员
     * @return 结果
     */
    @Override
    public int insertExcellentStudent(ExcellentStudent excellentStudent)
    {
        return excellentStudentMapper.insertExcellentStudent(excellentStudent);
    }

    /**
     * 修改优秀学员
     * 
     * @param excellentStudent 优秀学员
     * @return 结果
     */
    @Override
    public int updateExcellentStudent(ExcellentStudent excellentStudent)
    {
        return excellentStudentMapper.updateExcellentStudent(excellentStudent);
    }

    /**
     * 批量删除优秀学员
     * 
     * @param ids 需要删除的优秀学员主键
     * @return 结果
     */
    @Override
    public int deleteExcellentStudentByIds(Long[] ids)
    {
        return excellentStudentMapper.deleteExcellentStudentByIds(ids);
    }

    /**
     * 删除优秀学员信息
     * 
     * @param id 优秀学员主键
     * @return 结果
     */
    @Override
    public int deleteExcellentStudentById(Long id)
    {
        return excellentStudentMapper.deleteExcellentStudentById(id);
    }
}
